package com.bootdo.hotel.dao;

import com.bootdo.hotel.domain.HotelRoomMoneyCode;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 房价码配置
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-18 16:14:42
 */
@Mapper
public interface HotelRoomMoneyCodeDao {

	HotelRoomMoneyCode get(Long id);
	
	List<HotelRoomMoneyCode> list(Map<String,Object> map);

	HotelRoomMoneyCode getRoomMinMoneyCodeByDate(@Param("hotelId")Long hotelId,
												 @Param("roomTypeId") Long roomTypeId,
												 @Param("memberLevelList")String  memberLevelList,
												 @Param("startTime") String startTime,
												 @Param("endTime") String endTime
												 );
	List<HotelRoomMoneyCode> getRoomMoneyCodeByDate(@Param("hotelId")Long hotelId,
												 @Param("roomTypeId") Long roomTypeId,
													@Param("memberLevelList")String  memberLevelList,
													@Param("startTime") String startTime,
													@Param("endTime") String endTime
	);
	List<HotelRoomMoneyCode> getRoomMoneyCodeByDateGroupId(@Param("hotelId")Long hotelId,
													@Param("roomTypeId") Long roomTypeId,
														   @Param("memberLevelList")String  memberLevelList,
														   @Param("startTime") String startTime,
														   @Param("endTime") String endTime
	);


	int count(Map<String,Object> map);
	
	int save(HotelRoomMoneyCode hotelRoomMoneyCode);
	
	int update(HotelRoomMoneyCode hotelRoomMoneyCode);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);
}
